package com.example.springcloudapi.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
//链式写法
//new Dept().setxxx(xxx).setxxx....
@Accessors(chain = true)
public class Dept implements Serializable {

    private Long deptno;
    @Column(name = "deptname")
    private String deptname;
    private String db_source;
}
